
const initState = {
  text: '购物车',
}

export default {
  namespace: 'shopCart',
  state: initState,
  effects: {
    *fetch (_, { put }) {
      yield put({
        type: 'save',
      })
    },

  },
  reducers: {
    save (state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
}
